package PL.practica1;

import java.io.BufferedWriter;

public class Invitacion {
//	private To to;
//	private Date date;
//	private Where where;
//	private Why why;
//	private Signature signature;
	/**
	 * @param args
	 */
	public Invitacion() {

	}
	
	
//	public Invitacion(To to, Date date, Where where, Why why, Par par Signature signature) {
//		super();
//		System.out.println(to.getTo());
//		this.to = to;
//		this.par = par;
//		this.date = date;
//		this.where = where;
//		this.why = why;
//		this.signature = signature;
//	}

	
	
	public void translateInvitacion (BufferedWriter out, To to, Date date,
			Where where, Why why, Par par, Signature signature) throws Exception{
		out.write("<HTML>");
		out.write("<HEAD>");
		out.write("<TITLE> Invitation (sgmlpl/CSS formatting) </TITLE>");
		out.write("<LINK href=\"invit.css\" rel=\"style-sheet\" type=\"text/css\">");
		out.write("<!-- *24 August 1998 mg* -->");
		out.write("</HEAD>");
		out.write("<BODY>");
		out.write("<H1>INVITATION</H1>");
		out.write("<P><TABLE>");
		out.write("<TBODY>");
		out.write(to.translate());
		out.write(date.translate());
		out.write(where.translate());
		out.write(why.translate());
		out.write("</TBODY>");
		out.write("</TABLE>");
		out.write(par.translate());
		out.write(signature.translate());
		out.write("</BODY>");
		out.write("</HTML>");
		
		
	}


}
